package com.javenwong.android.engine;

import android.graphics.Canvas;

import com.javenwong.android.engine.scene.Camera;

/**
 * 游戏对象
 * @author 王晓锋
 * @version 1.00
 */
public abstract class GameObject{
	protected short id;
	protected int x;
	protected int y;
	
	public GameObject(){}
	
	public GameObject(short id, int x, int y) {
		super();
		this.id = id;
		this.x = x;
		this.y = y;
	}

	public abstract void draw(Canvas g, Camera camera);
	
	public abstract void logic();

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public short getId() {
		return id;
	}

	public void setId(short id) {
		this.id = id;
	}
	
}
